#include "BreakBrickPart.h"

// constructor
BreakBrickPart::BreakBrickPart(D3DXVECTOR2 position, float vx, float vy): 
	GameObject(position, EObjectType::EPartBrick)
{
	m_pSprite = new CSprite(ResourceManager::GetIns()->GetTexture(EResource::BreakBrickPart_ID));
	m_velocity.x=vx;
	m_velocity.y=vy;
};

// destructor
BreakBrickPart::~BreakBrickPart()
{
	GameObject::~GameObject();
};

// override update fu5nction
void BreakBrickPart::Update(float dt)
{
	m_position+=m_velocity*dt*60;
	m_velocity.y -= 0.7f;	
};
